#include "vtor_modbus.h"


#ifdef __DEMO_PROJECT__


#define MODBUS_ADDR_KEY_STATE	3001
#define MODBUS_ADDR_LED_STATE	4001
#define MODBUS_ADDR_ERROR_STATE	4002


struct VtorModbusRegister modbusRegisterArray[] = {
	//3000, 0, 只读
	3001, 0,
	3002, 0,
	3003, 0,
	3004, 0,
	3005, 0,
	3006, 0,
	3007, 0,
	3008, 0,
	3009, 0,
	3010, 0,
	3011, 0,
	3012, 0,

	//4000, 0, 可读可写
	4001, 0,
	4002, 0,
	4003, 0,
	4004, 0,
	4005, 0,
	4006, 0,
	4007, 0,
	4008, 0,
	4009, 0,
	4010, 0,
	4011, 0,
	4012, 0,

	0000, 0000
};

void VtorModbus_Init(uint8_t id)
{
	modbusId = id;
}

void VtorModbus_SendBuffer(uint8_t* buf, uint16_t len)
{
	UART1_SendNByte(buf, len);
}


#endif
